<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp" %>
<!DOCTYPE HTML>
<html ng-app>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <META HTTP-EQUIV="pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
    <title>${title}</title>
    <%@ include file="/WEB-INF/jsp/commons/meta.jsp" %>
    <link href="${ctx}/resources/new/style.css" type="text/css" rel="stylesheet"/>

</head>
<body>
<c:if test="${qrGoodsCode != null }">
    <table class="table table-striped table-bordered table-condensed">
        <tr>
            <input type="hidden" id="qrGoodsCodeID" name="qrGoodsCodeID" value="${qrGoodsCode.id }"/>
            <td class="span2">积分码:</td>
            <td class="span4">${qrGoodsCode.iCode}</td>
            <td class="span2">可积分数：</td>
            <td class="span4">
                <input style="color: red;" id="cPoint" name="cPoint" class="span1" type="text" value="${m.point }"/>
            </td>
        </tr>
        <tr>
            <td>商品名称：</td>
            <td>${m.name }</td>
            <td>商品编号：</td>
            <td>${m.code }</td>
        </tr>
        <tr>
            <td>单价：</td>
            <td class="tBlue">￥${m.price } 元</td>
            <td>商品条码：</td>
            <td>${m.barCode }</td>
        </tr>
        <tr>
            <td>品牌：</td>
            <td>${m.brand.name }</td>
            <td>产地：</td>
            <td>${m.producePlace }</td>
        </tr>
        <tr>
            <td>生产日期：</td>
            <td>${goods.produceDate }</td>
            <td>保质期：</td>
            <td>${m.shelflife }月</td>
        </tr>
        <tr>
            <td>商品描述：</td>
            <td>${m.description }</td>
            <td></td>
            <td></td>
        </tr>
    </table>
</c:if>
<c:if test="${qrGoodsCode == null }">
    <c:if test="${qr != null}">
        <span class="tRed">${qr.iCode} ${qr.state}</span>
    </c:if>
    <c:if test="${qr == null}">
        <span class="tRed">积分码无效，请检查确认后重新输入！</span>
    </c:if>
</c:if></body>
</html>